package com.sfac.springCloudTest.service;

import com.github.pagehelper.PageInfo;
import com.sfac.common.vo.Result;
import com.sfac.common.vo.Search;
import com.sfac.test.City;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * City Service
 */
public interface CityService {

	Result<City> insertCity(City city);

	Result<City> updateCity(City city);

	Result<Object> deleteCityByCityId(int cityId);

	City getCityByCityId(int cityId);

	List<City> getCitiesByCountryId(int countryId);

	PageInfo<City> getCitiesBySearch(Search search);

	Result<Object> insertBatchCities(@Param("cities") List<City> cities);
}
